﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TaoPortal.Common;

namespace TaoPortal.Areas.Admin.Models
{
    public class AcquisitionModel : BaseModel
    {
        public string AcquisitionClass { get; set; }

        public AcquisitionModel()
        {
            AcquisitionClass = "[]";
        }

        public void InitAcquisitionClass()
        {

            var classList = GetClassByType(TaoPortal.Common.SysEnum.SysClassType.AcquisitionType);
            AcquisitionClass = TaoPortal.Common.Utility.JsonSerialization.SerializeObject(classList.Select(x => new { text = x.text, value = x.id }));
        }
    }
}